package com.example.ViewPagerSum.task;

import android.os.AsyncTask;
import com.example.ViewPagerSum.interfaces.FinishedCallBack;
import com.example.ViewPagerSum.domain.ResultTask;

/**
 * ============================================================
 * author：     王景
 * <p/>
 * time：       2015/9/22  19:14.
 * <p/>
 * email:     wjontheway@163.com
 * <p/>
 * description：  异步任务的父类
 * <p/>
 * ============================================================
 */
public class BaseTask  extends AsyncTask<String ,Integer,ResultTask>{

    private FinishedCallBack  mFinishedCallBack;

    public BaseTask(FinishedCallBack mFinishedCallBack) {
        this.mFinishedCallBack = mFinishedCallBack;
    }

    @Override
    protected ResultTask doInBackground(String... params) {
        return null;
    }

    @Override
    protected void onPostExecute(ResultTask resultTask) {
        mFinishedCallBack.onFinishedCallBack(resultTask);
    }
}
